namespace CodeConsult.Nordic.nRF8001.ApplicationControlInterface.Events.SystemEvents
{
    public class BondStatusEvent : AciEventBase
    {
        public const byte OpCode = 0x87;

        public byte BondStatusCode { get; set; }
        public byte BondStatusSource { get; set; }
        public byte BondStatusSecMode1 { get; set; }
        public byte BondStatusSecMode2 { get; set; }
        public byte BondStatusKeyExchSlave { get; set; }
        public byte BondStatusKeyExchMaster { get; set; }

        protected override void DecodeFromBuffer()
        {
            BondStatusCode = DecodeHelper.GetByte();
            BondStatusSource = DecodeHelper.GetByte();
            BondStatusSecMode1 = DecodeHelper.GetByte();
            BondStatusSecMode2 = DecodeHelper.GetByte();
            BondStatusKeyExchSlave = DecodeHelper.GetByte();
            BondStatusKeyExchMaster = DecodeHelper.GetByte();
        }
    }
}
